package state.rmiTest;

import java.rmi.Naming;

public class MyRemoteClient {
    public static void main(String[] args) {
	new MyRemoteClient().go();
    }
    
    public void go() {
	try {
	    MyRemote service = (MyRemote)Naming.lookup("rmi://127.0.0.1/RemoteHello");
	    String string = service.helloWorld();
	    System.out.print(string);
	} catch (Exception e) {
	    e.printStackTrace();
	}
    }
}
